import java.beans.*;
import java.io.*;


public class Helper {

  public Helper() { };

  public static Object newBean(String name) {
    Object beanInstance;
  
    try {
      beanInstance = Beans.instantiate(null, name);
    } catch (ClassNotFoundException e) {
      System.out.println("No class found: " + e);
      return null;
    } catch (IOException e) {
      System.out.println("Read error: " + e);
      return null;
    }
    
    System.out.println("Helper: Neue Bean erstellt - "+name);
  
    return beanInstance;
  }
}
